<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>API Reference</title>

    <link rel="stylesheet" href="/docs/css/style.css" />
    <script src="/docs/js/all.js"></script>


          <script>
        $(function() {
            setupLanguages(["bash","javascript"]);
        });
      </script>
      </head>

  <body class="">
    <a href="#" id="nav-button">
      <span>
        NAV
        <img src="/docs/images/navbar.png" />
      </span>
    </a>
    <div class="tocify-wrapper">
        <img src="/docs/images/logo.png" />
                    <div class="lang-selector">
                                  <a href="#" data-language-name="bash">bash</a>
                                  <a href="#" data-language-name="javascript">javascript</a>
                            </div>
                            <div class="search">
              <input type="text" class="search" id="input-search" placeholder="Search">
            </div>
            <ul class="search-results"></ul>
              <div id="toc">
      </div>
                    <ul class="toc-footer">
                                  <li><a href='http://github.com/mpociot/documentarian'>Documentation Powered by Documentarian</a></li>
                            </ul>
            </div>
    <div class="page-wrapper">
      <div class="dark-box"></div>
      <div class="content">
          <!-- START_INFO -->
<h1>Info</h1>
<p>Welcome to the generated API reference.
<a href="{{ route("apidoc.json") }}">Get Postman Collection</a></p>
<!-- END_INFO -->
<h1>general</h1>
<!-- START_d285e8ffcbbd5630c07b7d9217e73071 -->
<h2>goodsList 商品列表</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/shop/goodslist?example_id=odit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"example_id":"magni"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/shop/goodslist"
);

let params = {
    "example_id": "odit",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "example_id": "magni"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/shop/goodslist</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>optional</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<!-- END_d285e8ffcbbd5630c07b7d9217e73071 -->
<h1>区域地址</h1>
<p>Class AreaController</p>
<!-- START_2f17002166e2fdaf422971f69d3d2990 -->
<h2>getAreaJson json 地址数据</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/common/areajson?example_id=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"example_id":"aut"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/common/areajson"
);

let params = {
    "example_id": "et",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "example_id": "aut"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/common/areajson</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>optional</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<!-- END_2f17002166e2fdaf422971f69d3d2990 -->
<!-- START_b5808733726d1fa38114c263ef4e5682 -->
<h2>getChildArea 获取下级区域地址 default 第一级数据</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/common/childarea" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/common/childarea"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/common/childarea</code></p>
<!-- END_b5808733726d1fa38114c263ef4e5682 -->
<!-- START_da0379c2d201a42d7995537288a32701 -->
<h2>getChildFormat 【laravel-admin 数据格式】获取下级区域地址 default 第一级数据</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/common/getchildformat?q=130000" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/common/getchildformat"
);

let params = {
    "q": "130000",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">null</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/common/getchildformat</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>q</code></td>
<td>optional</td>
<td>查询参数 为地址编码</td>
</tr>
</tbody>
</table>
<!-- END_da0379c2d201a42d7995537288a32701 -->
<!-- START_224a2f7c18fb2adf1b8f61649b9f2b2e -->
<h2>queryName 查询区域名称</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/common/queryname?code=110101" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/common/queryname"
);

let params = {
    "code": "110101",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/common/queryname</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>code</code></td>
<td>required</td>
<td>区域code.</td>
</tr>
</tbody>
</table>
<!-- END_224a2f7c18fb2adf1b8f61649b9f2b2e -->
<h1>房屋api</h1>
<!-- START_6795b92492539fc8d7b674d72ba0193a -->
<h2>search 房源搜索</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/house/search?example_id=dolores" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"example_id":"eaque"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/house/search"
);

let params = {
    "example_id": "dolores",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "example_id": "eaque"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/house/search</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>optional</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<!-- END_6795b92492539fc8d7b674d72ba0193a -->
<h1>文件上传</h1>
<p>Class UploadController</p>
<!-- START_70a2ad93c188902a7b57bc1d433129a8 -->
<h2>uploadFile 上传文件</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/file/upload" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"files":"consequatur"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/file/upload"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "files": "consequatur"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/file/upload</code></p>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>files</code></td>
<td>required</td>
<td>optional</td>
<td>formdata 格式 可添加数组或单个文件.</td>
</tr>
</tbody>
</table>
<!-- END_70a2ad93c188902a7b57bc1d433129a8 -->
<h1>用户api</h1>
<!-- START_8b1bf4d915dc5660d61f85cd93eaad69 -->
<h2>用户信息</h2>
<p><br><small style="padding: 1px 9px 2px;font-weight: bold;white-space: nowrap;color: #ffffff;-webkit-border-radius: 9px;-moz-border-radius: 9px;border-radius: 9px;background-color: #3a87ad;">Requires authentication</small></p>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/user/info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/info"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "status_code": 5000,
    "message": "token 参数错误",
    "data": null
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/user/info</code></p>
<!-- END_8b1bf4d915dc5660d61f85cd93eaad69 -->
<!-- START_de165b3cc0a3b8df64c67b3467a1bb99 -->
<h2>updateInfo 修改用户信息；</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/user/updateinfo" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"data":"consequatur"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/updateinfo"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "data": "consequatur"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/user/updateinfo</code></p>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>data</code></td>
<td>required</td>
<td>optional</td>
<td>json对象或json字符串.</td>
</tr>
</tbody>
</table>
<!-- END_de165b3cc0a3b8df64c67b3467a1bb99 -->
<!-- START_4b21ec8d9db9335d4a50eb4d5f783fa9 -->
<h2>getQrcode 图片二维码[固定单图]</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/user/qrcode" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/qrcode"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {
        "share_url": "http:\/\/127.0.0.1:8000\/make\/1334\/share.png【分享图片】",
        "qrcode_url": "http:\/\/127.0.0.1:8000\/make\/1334\/qr1.png【纯二维码】"
    },
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/user/qrcode</code></p>
<!-- END_4b21ec8d9db9335d4a50eb4d5f783fa9 -->
<!-- START_580cc2141ad69032ff4b118c4955218c -->
<h2>getNearByDistance 查询附件的人</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/user/nearuser?longitude=108&amp;latitude=30&amp;distance=500&amp;page=1&amp;limit=15" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/nearuser"
);

let params = {
    "longitude": "108",
    "latitude": "30",
    "distance": "500",
    "page": "1",
    "limit": "15",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/user/nearuser</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>longitude</code></td>
<td>required</td>
<td>经度</td>
</tr>
<tr>
<td><code>latitude</code></td>
<td>required</td>
<td>经度</td>
</tr>
<tr>
<td><code>distance</code></td>
<td>required</td>
<td>查询附件距离(米)</td>
</tr>
<tr>
<td><code>page</code></td>
<td>optional</td>
<td>页数default 1</td>
</tr>
<tr>
<td><code>limit</code></td>
<td>optional</td>
<td>每页条数 default 15</td>
</tr>
</tbody>
</table>
<!-- END_580cc2141ad69032ff4b118c4955218c -->
<!-- START_9354c50db535dafa5ea80e28f8d2565e -->
<h2>getMultipleShareimg</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/user/multipesahreimg?example_id=saepe" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"example_id":"officia"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/multipesahreimg"
);

let params = {
    "example_id": "saepe",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "example_id": "officia"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "status_code": 2000,
    "message": "success",
    "data": [
        "http:\/\/127.0.0.1:8000\/make\/user\/101334\/1_0_shareimg.png",
        "http:\/\/127.0.0.1:8000\/make\/user\/101334\/2_1_shareimg.png"
    ]
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/user/multipesahreimg</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>example_id</code></td>
<td>required</td>
<td>optional</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<!-- END_9354c50db535dafa5ea80e28f8d2565e -->
<!-- START_39def77eb9d7274efac9041e7c3a4386 -->
<h2>miniProgramLogin 小程序登录</h2>
<p><br><small style="padding: 1px 9px 2px;font-weight: bold;white-space: nowrap;color: #ffffff;-webkit-border-radius: 9px;-moz-border-radius: 9px;border-radius: 9px;background-color: #3a87ad;">Requires authentication</small></p>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/user/miniprogram/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"code":"111111","parent_id":"0","user_id":"1334","pass":"dongdongidea"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/miniprogram/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "code": "111111",
    "parent_id": "0",
    "user_id": "1334",
    "pass": "dongdongidea"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {
        "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC8xMjcuMC4wLjE6ODAwMFwvZGluZ2dvYXBpXC91c2VyXC9taW5pcHJvZ3JhbVwvbG9naW4iLCJpYXQiOjE1ODA4MDg1OTMsImV4cCI6MTU4MTI0MDU5MywibmJmIjoxNTgwODA4NTkzLCJqdGkiOiJXV1dZb3daYVJJbWR6RlJIIiwic3ViIjoxMzM0LCJwcnYiOiJjNWFlZTViMDllOGE2Y2E1NTQyMDMyNmE0ZmJiNWYxNTA4ZTJlM2RlIn0.aqpXnuwv4fPbwMqYIZgNfyxGNs-xrmkfvOVL_fk2e08",
        "token_type": "bearer",
        "expires_in": 432000
    },
    "status_code": 2000,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/user/miniprogram/login</code></p>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>code</code></td>
<td>required</td>
<td>optional</td>
<td>form The id of the location.</td>
</tr>
<tr>
<td><code>parent_id</code></td>
<td>父级id</td>
<td>optional</td>
</tr>
<tr>
<td><code>user_id</code></td>
<td>form</td>
<td>optional</td>
<td>使用测试code时，需登录的用户id</td>
</tr>
<tr>
<td><code>pass</code></td>
<td>form</td>
<td>optional</td>
<td>使用测试code时 需要的通信密码：</td>
</tr>
</tbody>
</table>
<!-- END_39def77eb9d7274efac9041e7c3a4386 -->
<!-- START_761ff0685a481c3b853a6ac0dde27d39 -->
<h2>login 账户登录</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/user/userlogin" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"username":"non","password":"aliquid"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/userlogin"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "username": "non",
    "password": "aliquid"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/user/userlogin</code></p>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>username</code></td>
<td>required</td>
<td>optional</td>
<td>The loginName of the location.</td>
</tr>
<tr>
<td><code>password</code></td>
<td>required</td>
<td>optional</td>
<td>The password of the location.</td>
</tr>
</tbody>
</table>
<!-- END_761ff0685a481c3b853a6ac0dde27d39 -->
<h1>邮件</h1>
<p>Class AreaController</p>
<!-- START_2fe44833b00e3fe8ebd02a0f6be60f1e -->
<h2>sendEmail 发邮件</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET \
    -G "http://127.0.0.1:8000/dinggoapi/common/email?email=quas&amp;content=deserunt&amp;title=rerum" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/common/email"
);

let params = {
    "email": "quas",
    "content": "deserunt",
    "title": "rerum",
};
Object.keys(params)
    .forEach(key =&gt; url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET /dinggoapi/common/email</code></p>
<h4>Query Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>email</code></td>
<td>required</td>
<td>The id of the location.</td>
</tr>
<tr>
<td><code>content</code></td>
<td>required</td>
<td>The id of the location.</td>
</tr>
<tr>
<td><code>title</code></td>
<td>required</td>
<td>The id of the location.</td>
</tr>
</tbody>
</table>
<!-- END_2fe44833b00e3fe8ebd02a0f6be60f1e -->
<h1>钱包</h1>
<p>APIs for managing users</p>
<!-- START_233029bec46751eea476468fcccade95 -->
<h2>Withdrawal  提现申请</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/user/withdrawal" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"money":"100"}'
</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/withdrawal"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "money": "100"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/user/withdrawal</code></p>
<h4>Body Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>money</code></td>
<td>required</td>
<td>optional</td>
<td>提现金额</td>
</tr>
</tbody>
</table>
<!-- END_233029bec46751eea476468fcccade95 -->
<!-- START_f1084387f5335f722baa9162f8dab20b -->
<h2>walletRecord 钱包全部记录</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/user/walletrecord" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/walletrecord"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/user/walletrecord</code></p>
<!-- END_f1084387f5335f722baa9162f8dab20b -->
<!-- START_ca5e4d7a89b14bc0903a972289e61398 -->
<h2>walletIncaseRecord   钱包收入记录</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/user/walletincaserecord" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/walletincaserecord"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/user/walletincaserecord</code></p>
<!-- END_ca5e4d7a89b14bc0903a972289e61398 -->
<!-- START_bd0ea2ce8a1a4f8e60d84a0552b8d5c1 -->
<h2>walletDecaseRecorc 钱包减少记录</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/user/walletdecaserecorc" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/walletdecaserecorc"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/user/walletdecaserecorc</code></p>
<!-- END_bd0ea2ce8a1a4f8e60d84a0552b8d5c1 -->
<!-- START_dd49dad0f8c6e6d9ee538338b68f0011 -->
<h2>WithdrawalApply 提现单记录</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST \
    "http://127.0.0.1:8000/dinggoapi/user/withdrawalapply" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"</code></pre>
<pre><code class="language-javascript">const url = new URL(
    "http://127.0.0.1:8000/dinggoapi/user/withdrawalapply"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "data": {},
    "status_code": 200,
    "message": "success"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>POST /dinggoapi/user/withdrawalapply</code></p>
<!-- END_dd49dad0f8c6e6d9ee538338b68f0011 -->
      </div>
      <div class="dark-box">
                        <div class="lang-selector">
                                    <a href="#" data-language-name="bash">bash</a>
                                    <a href="#" data-language-name="javascript">javascript</a>
                              </div>
                </div>
    </div>
  </body>
</html>